package com.czl.module_base.bean;

import java.util.List;

/**
 * @author by xubin,
 * @date on 2022/1/24.
 * PS: Not easy to write code, please indicate.
 */
public class ListBean<T> {
    private List<T> list;
    private int total;
    private int pages;
    private int size;
    private Boolean isFirstPage;
    private Boolean isLastPage;
    private Boolean hasNextPage;

    public Boolean getFirstPage() {
        return isFirstPage;
    }

    public void setFirstPage(Boolean firstPage) {
        isFirstPage = firstPage;
    }

    public Boolean getLastPage() {
        return isLastPage;
    }

    public void setLastPage(Boolean lastPage) {
        isLastPage = lastPage;
    }

    public Boolean getHasNextPage() {
        return hasNextPage;
    }

    public boolean hasNextPage() {
        return hasNextPage != null && hasNextPage;
    }

    public void setHasNextPage(Boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
